library Point;

import 'dart:math';
part './PointInfo.dart';

class Point {
  num x = 0, y = 0;
  Point(this.x, this.y);

  num distanceTo(Point p) {
    var dx = x - p.x;
    var dy = y - p.y;
    return sqrt(dx * dx + dy * dy);
  }
}
